[NFC] Rename _LIBCPP_TYPE_VIS_ONLY to _LIBCPP_TEMPLATE_VIS The name _LIBCPP_TYPE_VIS_ONLY is no longer accurate because both _LIBCPP_TYPE_VIS and _LIBCPP_TYPE_VIS_ONLY expand to __attribute__((__type_visibility__)) with Clang. The only remaining difference is that _LIBCPP_TYPE_VIS_ONLY can be applied to templates whereas _LIBCPP_TYPE_VIS cannot (due to dllimport/dllexport not being allowed on templates). This patch renames _LIBCPP_TYPE_VIS_ONLY to _LIBCPP_TEMPLATE_VIS. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@291035 91177308-0d34-0410-b5e6-96231b3b80d8 
diff --git a/include/experimental/any b/include/experimental/any index 9ecafad..022b379 100644 --- a/include/experimental/any +++ b/include/experimental/any 
@@ -292,7 +292,7 @@  {    template <class _Tp> - struct _LIBCPP_TYPE_VIS_ONLY _SmallHandler + struct _LIBCPP_TEMPLATE_VIS _SmallHandler  {  _LIBCPP_INLINE_VISIBILITY  static void* __handle(_Action __act, any const * __this, any * __other, @@ -373,7 +373,7 @@  };    template <class _Tp> - struct _LIBCPP_TYPE_VIS_ONLY _LargeHandler + struct _LIBCPP_TEMPLATE_VIS _LargeHandler  {  _LIBCPP_INLINE_VISIBILITY  static void* __handle(_Action __act, any const * __this, any * __other, 
diff --git a/include/experimental/dynarray b/include/experimental/dynarray index 8ef4571..d94b29b 100644 --- a/include/experimental/dynarray +++ b/include/experimental/dynarray 
@@ -113,7 +113,7 @@  namespace std { namespace experimental { inline namespace __array_extensions_v1 {    template <class _Tp> -struct _LIBCPP_TYPE_VIS_ONLY dynarray +struct _LIBCPP_TEMPLATE_VIS dynarray  {  public:  // types: @@ -295,7 +295,7 @@    _LIBCPP_BEGIN_NAMESPACE_STD  template <class _Tp, class _Alloc> -struct _LIBCPP_TYPE_VIS_ONLY uses_allocator<std::experimental::dynarray<_Tp>, _Alloc> : true_type {}; +struct _LIBCPP_TEMPLATE_VIS uses_allocator<std::experimental::dynarray<_Tp>, _Alloc> : true_type {};  _LIBCPP_END_NAMESPACE_STD    #endif // if _LIBCPP_STD_VER > 11  
diff --git a/include/experimental/memory_resource b/include/experimental/memory_resource index 1a2cb10..b3d9ca8 100644 --- a/include/experimental/memory_resource +++ b/include/experimental/memory_resource 
@@ -93,7 +93,7 @@  }    // 8.5, memory.resource -class _LIBCPP_TYPE_VIS_ONLY memory_resource +class _LIBCPP_TEMPLATE_VIS memory_resource  {  static const size_t __max_align = alignof(max_align_t);   @@ -151,7 +151,7 @@    // 8.6.1, memory.polymorphic.allocator.overview  template <class _ValueType> -class _LIBCPP_TYPE_VIS_ONLY polymorphic_allocator +class _LIBCPP_TEMPLATE_VIS polymorphic_allocator  {  public:  typedef _ValueType value_type; @@ -334,7 +334,7 @@    // 8.7.1, memory.resource.adaptor.overview  template <class _CharAlloc> -class _LIBCPP_TYPE_VIS_ONLY __resource_adaptor_imp +class _LIBCPP_TEMPLATE_VIS __resource_adaptor_imp  : public memory_resource  {  using _CTraits = allocator_traits<_CharAlloc>; 
diff --git a/include/experimental/optional b/include/experimental/optional index 8dcda65..f32941b 100644 --- a/include/experimental/optional +++ b/include/experimental/optional 
@@ -894,7 +894,7 @@  _LIBCPP_BEGIN_NAMESPACE_STD    template <class _Tp> -struct _LIBCPP_TYPE_VIS_ONLY hash<std::experimental::optional<_Tp> > +struct _LIBCPP_TEMPLATE_VIS hash<std::experimental::optional<_Tp> >  {  typedef std::experimental::optional<_Tp> argument_type;  typedef size_t result_type; 
diff --git a/include/experimental/string_view b/include/experimental/string_view index ccc886e..674f6c3 100644 --- a/include/experimental/string_view +++ b/include/experimental/string_view 
@@ -192,7 +192,7 @@  _LIBCPP_BEGIN_NAMESPACE_LFTS    template<class _CharT, class _Traits = _VSTD::char_traits<_CharT> > - class _LIBCPP_TYPE_VIS_ONLY basic_string_view { + class _LIBCPP_TEMPLATE_VIS basic_string_view {  public:  // types  typedef _Traits traits_type; @@ -788,7 +788,7 @@  // [string.view.hash]  // Shamelessly stolen from <string>  template<class _CharT, class _Traits> -struct _LIBCPP_TYPE_VIS_ONLY hash<std::experimental::basic_string_view<_CharT, _Traits> > +struct _LIBCPP_TEMPLATE_VIS hash<std::experimental::basic_string_view<_CharT, _Traits> >  : public unary_function<std::experimental::basic_string_view<_CharT, _Traits>, size_t>  {  size_t operator()(const std::experimental::basic_string_view<_CharT, _Traits>& __val) const _NOEXCEPT; 
diff --git a/include/experimental/type_traits b/include/experimental/type_traits index d6901d4..3a75936 100644 --- a/include/experimental/type_traits +++ b/include/experimental/type_traits 
@@ -441,16 +441,16 @@  // 3.3.2, Other type transformations  /*  template <class> -class _LIBCPP_TYPE_VIS_ONLY raw_invocation_type; +class _LIBCPP_TEMPLATE_VIS raw_invocation_type;    template <class _Fn, class ..._Args> -class _LIBCPP_TYPE_VIS_ONLY raw_invocation_type<_Fn(_Args...)>; +class _LIBCPP_TEMPLATE_VIS raw_invocation_type<_Fn(_Args...)>;    template <class> -class _LIBCPP_TYPE_VIS_ONLY invokation_type; +class _LIBCPP_TEMPLATE_VIS invokation_type;    template <class _Fn, class ..._Args> -class _LIBCPP_TYPE_VIS_ONLY invokation_type<_Fn(_Args...)>; +class _LIBCPP_TEMPLATE_VIS invokation_type<_Fn(_Args...)>;    template <class _Tp>  using invokation_type_t = typename invokation_type<_Tp>::type; 
diff --git a/include/experimental/utility b/include/experimental/utility index b5fca6c..8effa71 100644 --- a/include/experimental/utility +++ b/include/experimental/utility 
@@ -40,7 +40,7 @@    _LIBCPP_BEGIN_NAMESPACE_LFTS   - struct _LIBCPP_TYPE_VIS_ONLY erased_type { }; + struct _LIBCPP_TEMPLATE_VIS erased_type { };    _LIBCPP_END_NAMESPACE_LFTS